package com.kqb.pojo;

import java.io.Serializable;
import java.util.Date;

import com.kqb.common.group.ApiGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * e_department
 *
 * @author D
 */
@Data
@ApiModel("部门")
public class Department implements Serializable {
    @ApiModelProperty(value = "用户ID")
    @NotNull(groups = {ApiGroups.Update.class})
    private Integer id;

    /**
     * 允许为空 ，表示为根部门
     */
    private Integer parentId = 0;

    private String name;

    @ApiModelProperty(hidden = true)
    private Date createdAt;

    @ApiModelProperty(value = "是否启用", required = true)
    private String isEnabled;
    @ApiModelProperty(hidden = true)
    private static final long serialVersionUID = 1L;
}